
//
//  Common.swift
//  WJWeiBo
//
//  Created by wangjun on 16/7/20.
//  Copyright © 2016年 wangjun. All rights reserved.
//

import UIKit
/*

https://www.baidu.com/

App Key：3582574566
App Secret：cc544d16786d0624a9168c6f72d69331
*/
let WJAPPKEY = "3582574566"
let WJSECRET = "cc544d16786d0624a9168c6f72d69331"
let WJNAME = "1051216130@qq.com"
let WJWEIBOMIMA = "wj1051216130"
let BACK_URL = "https://www.baidu.com/"

let weiBoSwitchRootVC = "weiBoSwitchRootVC"

// app主题颜色
let ThemeColor = UIColor.orangeColor()
// 屏幕的宽和高
let SCREENW = UIScreen.mainScreen().bounds.width
let SCREENH = UIScreen.mainScreen().bounds.height
// RGB颜色
func RGB(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat = 1) -> UIColor{
    return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: alpha)
}
// 随机颜色
func RandomColor() ->UIColor{
    let r = random()%256
    let g = random()%256
    let b = random()%256
    return RGB(CGFloat(r), green: CGFloat(g), blue: CGFloat(b))
}